﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddInner.aspx.cs" Inherits="Web.admin.CompetitionManage.AddInner"  validateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>校级竞赛项目管理</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    
     <script src="../js/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../tool/editor/kindeditor.js" type="text/javascript"></script>
    <script src="../tool/editor/lang/zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        var editor;
        KindEditor.ready(function (K) {
            editor = K.create('#KindEditor', {
                width: '750px', height: '330px',
                items: [
                     'preview', 'print', 'template', 'fullscreen', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull'
                     , '|', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough',
                      'lineheight', 'removeformat', '|', 'image', 'multiimage', 'insertfile', 'table', 'hr', 'link', 'unlink', '|'
                ],
                uploadJson: '../../editor/asp.net/upload_json.ashx',
                fileManagerJson: '../../editor/asp.net/file_manager_json.ashx',
                allowFileManager: true
            });
        });
        $(function () {
            $("#Cb_url").bind("click", function () {
                if ($(this).attr("checked") == true) {
                    $(".upordown").show();
                } else {
                    $(".upordown").hide();
                }
            });
        });
    </script>
     <script type="text/javascript" language="javascript">
         function CheckEmpty() {
             if ($(".txtInput").val() == "") {
                 alert("用户名称为必填项，不允许为空");
                 return false;
             }
            
             else
                 return true;
         }
         function ClearToEmpty() {
             if ($(".txtInput").val(""))
                 return false;


         };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../images/main_hl.gif" /></td>
                        <td ><img src="../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>添加校级竞赛项目</span></td>
                        <td><img src="../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>

   <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle" style="height:auto!important; height:853px !important;">
            <div class="navigation">首页&gt;竞赛设置&gt;添加校级竞赛项目
            <div style="float:right; margin-right:5px;">
                    <a href="ListInner.aspx">返回校级竞赛项目列表>></a>
                </div>
            </div>
            <div class="submitTable" >
                <table>
                    <tr>
                        <th>竞赛项目名称：</th>
                        <td>
                            <asp:TextBox ID="txtCompName" CssClass="txtInput" runat="server"></asp:TextBox><label>*</label>
                            <input id="txtCompId" type="hidden" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th>所属学院: </th>
                        <td><asp:DropDownList ID="AcademyList"  runat="server" AutoPostBack="true" 
                                onselectedindexchanged="AcademyList_SelectedIndexChanged" >
                        </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <th>竞赛负责人: </th>
                        <td><asp:DropDownList ID="TeacherList"  runat="server"  >
                        </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <th>举办学期: </th>
                        <td>
                        <asp:DropDownList ID="SemesterList"  runat="server" >
                            <asp:ListItem Selected="True" Value="0">春季学期</asp:ListItem>
                            <asp:ListItem Value="1">秋季学期</asp:ListItem>
                        </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <th>参赛形式：</th>
                        <td>
                            <asp:RadioButtonList ID="listForm" runat="server" 
                                RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="0">个人</asp:ListItem>
                                <asp:ListItem Value="1">小组</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td><asp:CheckBox ID="SpecialBox"  Text="是否区分专业组" runat="server"/></td>
                    </tr>
                    <tr>
                       <th>内容介绍</th>
                        <td align="left">
                          <asp:TextBox  ID="KindEditor" TextMode="MultiLine" runat="server"></asp:TextBox>
                         </td>
                   </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btn_Save" OnClientClick="return CheckEmpty();" runat="server" 
                                Text="保存"  CssClass="btn_submit" onclick="btn_Save_Click" Height="32px" 
                                Width="75px" />
                        </td>
                        <td>
                            <asp:Button ID="btn_Reset" OnClientClick="return ClearToEmpty();" runat="server" Text="重置"  CssClass="btn_reset"/>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>
